package com.yonyou.pmclouds.billview.config;

import com.yonyou.pmclouds.billview.plugin.IBillViewCustomPlugin;

import java.util.HashMap;
import java.util.Map;

public class BillViewPluginFactory {

    private Map<String, IBillViewCustomPlugin> pluginMap = new HashMap<>();

    public void addBuziService(String billType,IBillViewCustomPlugin plugin){
        pluginMap.put(billType,plugin);
    }

    public IBillViewCustomPlugin getBuziPlugin(String billType){
        return pluginMap.get(billType);
    }
}
